/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package net.tygzs.minerpg.CommandExecutor.MineItem;

import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;

/**
 *
 * @author AthtTNT
 */
public class Command_Help
{

    public static void sendHelp(CommandSender sender, String args[])
    {
        if (args == null)
        {
            sendIndexOfHelp(sender, 1);
        }
    }

    public static void sendIndexOfHelp(CommandSender sender, int index)
    {
        sender.sendMessage(ChatColor.GREEN + "----------------------");
        if (index == 1)
        {
            sender.sendMessage(ChatColor.YELLOW + "/MineItem help <页码> 获取关于插件的帮助");
            sender.sendMessage(ChatColor.YELLOW + "/MineItem create [物品名称] 创建一个物品");
            sender.sendMessage(ChatColor.YELLOW + "/MineItem give [物品名称] [玩家名称] 给予玩家指定RPG物品");
            sender.sendMessage(ChatColor.YELLOW + "/MineItem Damage [物品名称] [伤害] 修改一个物品的伤害");
            sender.sendMessage(ChatColor.YELLOW + "/MineItem Dur [物品名称] [耐久度] 修改一个物品的耐久度");
            sender.sendMessage(ChatColor.YELLOW + "/MineItem Lore 查询关于Lore的帮助");
            sender.sendMessage(ChatColor.YELLOW + "/MineItem Name [物品名称] [显示名称] 修改一个物品的显示名称");
            sender.sendMessage(ChatColor.YELLOW + "/MineItem display [物品名称] 将手上的物品设置成一个物品的模型");
            sender.sendMessage(ChatColor.YELLOW + "/MineItem remove [物品名称] 删除一个物品模型");
            sender.sendMessage(ChatColor.YELLOW + "/MineItem list 列举所有物品模型");
        }
        if (index == 2)
        {
            sender.sendMessage(ChatColor.YELLOW + "/MineItem Type [物品名称] <物品类型> 设置一个物品的类型");
            sender.sendMessage(ChatColor.YELLOW + "/MineRPG Armor 关于护甲的相关指令");
        }
        sender.sendMessage(ChatColor.RED + "------第" + index + "页/共2页------");
    }
}
